package com.dys.listener;

import javax.servlet.http.HttpSessionActivationListener;
import javax.servlet.http.HttpSessionEvent;

/**
 * @Author: 疾风
 * @ClassName: LoginSessionActivationListener
 * @Description: 监听器钝化域活化
 * @CreateDate: 2024/09/25
 * @Version: v1.0.0
 */
public class LoginSessionActivationListener implements HttpSessionActivationListener {
    @Override
    public void sessionWillPassivate(HttpSessionEvent se) {
        System.out.println(se.getSession().hashCode()+"即将钝化");
    }

    @Override
    public void sessionDidActivate(HttpSessionEvent se) {
        System.out.println(se.getSession().hashCode()+"已经活化");
    }
}
